package cn.linstudy.web.controller;

import cn.linstudy.common.web.Result;
import cn.linstudy.domain.Product;
import cn.linstudy.service.IProductService;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/product")
@Slf4j
public class ProductController {
    @Autowired
    private IProductService productService;

    @RequestMapping("/queryByIds")
    Result<List<Product>> queryByIds(@RequestBody List<Long> ids){
        return productService.queryByIds(ids) ;
    }
}
